<?
$category = new Category();
$category->select($category_id);
?>
<div class='tour_left'>
	<div class='title_1 cufon' style='width:595px;'>
        <?=$category->getname()?>
    </div>
	<div class='wrap_tour_content'>
	    <? include('z_includes/tour_filter.php'); ?>
		<div class='tour_list'>
        <?
			$page		=	$page + 0;
			$perpage	=	10;
			$sum		=	sizeof($category->getAllToursInCategory());
			$pages		=	($sum-($sum%$perpage))/$perpage;
			if ($sum % $perpage <> 0 )	$pages = $pages+1;
			$page		=	($page==0)?1:(($page>$pages)?$pages:$page);
			$min 		= 	abs($page-1) * $perpage;
			$max 		= 	$perpage;
			$tours = $category->getAllToursInCategory(true,1,"tour_id DESC","$min, $max");
			include('z_includes/tour_list.php');
		?>
        </div>
    </div>
</div>

<div class='tour_right'>
<?
include('z_includes/tour_right.php');
?>
</div>
<div style='clear:both'></div>